<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<?php
		global $current_controller;
	
		//http-equiv meta tags
		XHTML::Meta('http-equiv', 'Content-Type', 'text/html; charset=utf-8');
		XHTML::Meta('http-equiv', 'content-language', Language::getShortName());
		
		//named meta tags
		XHTML::Meta('name', 'robots', 'index,follow');
		XHTML::Meta('name', 'programming by', 'Perkin Anton [DeveloperMD]');
		XHTML::Meta('name', 'design by', 'DeveloperMD');
		XHTML::Meta('name', 'powered by', 'SpherusFramework 2.10');
		XHTML::Meta('name', 'author', 'DeveloperMD');
		
		//common css files
//		XHTML::CSSBuffer(substr(THEMES.SEPARATOR.$current_controller->theme.SEPARATOR.'site', 1));
		XHTML::DisplayCSSBuffer();

		//common javascript files
//		XHTML::JSBuffer(JAVASCRIPTSRC.SEPARATOR.'general');
		
		//additional javascript files
		$current_controller->IncludeJavascriptFiles();
		XHTML::DisplayJSBuffer();
	   
		//jquery component
//    	jQuery::Initialize();
		
		//page title
		XHTML::Title(LANG_PROJECT_NAME.' :: '.strip_tags($current_controller->page_title));
	?>
	
	</head>
	<body onload="<?php echo $current_controller->onload; ?>">
		
		  	<!-- TOPLINE -->
		  	<?php
//		  		$current_controller->IncludeThemeElement('site_top');
		  	?>
	  	  	<!-- /TOPLINE -->

		  	<!-- HEADER -->
		  	<?php
//		  		$current_controller->IncludeThemeElement('site_header');
		  	?>
	
		  	<!-- LEFT COLUMN -->
		  	<?php
		  		if ($current_controller->hasLeftColumn) 
		  		{
//		  			$current_controller->IncludeThemeElement('site_left');
		  		}
		  		else 
		  		{

		  		}
		  	?>
	  	  	<!-- /LEFT COLUMN -->		

			<?php 
				echo $page_content;
			?>
			
		  	<!-- FOOTER -->
		  	<?php
//		  		$current_controller->IncludeThemeElement('site_footer');
		  	?>
	  	  	<!-- /FOOTER -->

	</body>
</html>